package com.liang.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liangxp
 * @date 2021/5/13 21:56
 */
@RestController
public class LoginController {

    @RequestMapping(value = "/loginSuccess", produces = {"text/plain;charset=utf-8"})
    public String loginSuccess() {
        return "登录成功";
    }


    @GetMapping(value = "/r/r1", produces = {"text/plain;charset=utf-8"})
    public String r1() {
        return "访问资源1";
    }

    @GetMapping(value = "/r/r2", produces = {"text/plain;charset=utf-8"})
    public String r2() {
        return "访问资源2";
    }
}
